﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLLFactory;
using IBLL;
using System.Xml.Linq;
namespace Face.Web
{
    public partial class index : System.Web.UI.Page
    {
        IBLL.IAnnounceBLL iAnnounceBLL = BLLFactory.DataAccess.getAnnouncIBLL();
        
        protected void Page_Load(object sender, EventArgs e)
        {
            string path = @"C:/announce.xml";
            XElement announce =  iAnnounceBLL.getNoteFromXml(path);
            string title = announce.Element("Title").Value;
            string content = announce.Element("Body").Value;
            Label1.Text = title;
            Label2.Text = content;
        }
    }
}